package com.kinghunt.misp.dal.dao.custx;

import com.kinghunt.misp.common.dto.providex.ProvideDTO;
import com.kinghunt.misp.dal.model.custx.CustDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 客户基本信息表
* Created by Mybatis Generator on 2025/02/25
*/
public interface CustDAO {
    int deleteByPrimaryKey(Long custId);

    int insert(CustDO record);

    int insertSelective(CustDO record);

    CustDO selectByPrimaryKey(Long custId);

    int updateByPrimaryKeySelective(CustDO record);

    int updateByPrimaryKey(CustDO record);

    // 多个参数时需要用@Param
    List<CustDO> selectCustList(@Param("cust")CustDO cust,
                                      @Param("offset")int offset,
                                      @Param("size")int size);
    // 只有一个参数时用@Param为XML映射提供便利，如提高可读性，便于后续拓展，支持注解式SQL语句
    int selectCustListCount(@Param("cust")CustDO cust);
    List<CustDO> selectByIds(@Param("list") List<Long> custIds);

    List<CustDO> selectByCustNo(@Param("custNo")String custNo);
}